// Injection HDAS
// Author: tsln1998@gmail.com


DefinitionBlock ("", "SSDT", 2, "hack", "SLEEP", 0x00000000)
{
    External(_SB.PCI0.GLAN, DeviceObj)
    External(_SB.PCI0.XHC, DeviceObj)
    External(_SB.PCI0.XDCI, DeviceObj)
    External(_SB.PCI0.HDEF, DeviceObj)
    
    Method(_SB.PCI0.GLAN._PRW)
    {
        Return(Package() { 0x6D, 0 })
    }
    
    Method(_SB.PCI0.XHC._PRW)
    {
        Return(Package() { 0x6D, 0 })
    }
    
    Method(_SB.PCI0.XDCI._PRW)
    {
        Return(Package() { 0x6D, 0 })
    }
    
    Method(_SB.PCI0.HDEF._PRW)
    {
        Return(Package() { 0x6D, 0 })
    }

    Method (_SB.PCI0.XHC._DSM, 4, NotSerialized)
    {
        If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }
        Return (Package()
        {
            "subsystem-id", Buffer() { 0x70, 0x72, 0x00, 0x00 },
            "subsystem-vendor-id", Buffer() { 0x86, 0x80, 0x00, 0x00 },
            "AAPL,current-available", 2100,
            "AAPL,current-extra", 2200,
            "AAPL,current-extra-in-sleep", 1600,
            "AAPL,device-internal", 0x02,
            "AAPL,max-port-current-in-sleep", 2100,
        })
    }

}